cmake_minimum_required(VERSION 3.15 FATAL_ERROR)

project(chat-multi2 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Boost 1.66 REQUIRED COMPONENTS)

message("BOOST_INCLUDEDIR: ${BOOST_INCLUDEDIR}")

file (GLOB APP_FILES
        beast.hpp
        http_session.cpp
        http_session.hpp
        listener.cpp
        listener.hpp
        main.cpp
        net.hpp
        shared_state.cpp
        shared_state.hpp
        websocket_session.cpp
        websocket_session.hpp
        chat_client.html
        )

add_executable(chat-multi2 ${APP_FILES})

target_link_libraries(chat-multi2
        PUBLIC
        pthread
        )

